#include "cpu/exec/template-start.h"

#define make_setcc_helper(cc) \
    make_helper(concat4(set, cc, _, SUFFIX)) { \
        int len = concat(decode_rm_, SUFFIX)(eip + 1); \
        print_asm("set" str(cc) " %s", op_src->str); \
        if (concat(check_cc_, cc)()) OPERAND_W(op_src, 1); \
        else OPERAND_W(op_src, 0); \
        return len + 1; \
    }

make_setcc_helper(ne)
make_setcc_helper(e)

#include "cpu/exec/template-end.h"